/*
 * Copyright 2016 Wealth Inc. All rights reserved.
 */
 package com.wealth.vote.service.impl;

import iaas.enums.StatusEnum;
import iaas.service.impl.BaseServiceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.wealth.vote.entity.CooperativeArea;
import com.wealth.vote.repository.CooperativeAreaDao;
import com.wealth.vote.service.ICooperativeAreaService;

/**
 * @author chan
 * @version 1.0
 * @since 1.0
 */
 
@Component
public class CooperativeAreaServiceImpl extends BaseServiceImpl<CooperativeArea> implements ICooperativeAreaService{

	@Autowired
	private CooperativeAreaDao cooperativeAreaDao;

	@Override
	public List<CooperativeArea> getAllArea() throws Exception {
		return cooperativeAreaDao.findByStatus(StatusEnum.NORMAL.getValue());
	}
	
}
